<?php
/*
Template Name: Full Width
*/

get_header();

?>

<style>
    .yarpp-related { display:none; }
</style>
       
    <div id="content" class="page col-full">
		<div id="main" class="fullwidth">
            
		<?php if ( $woo_options[ 'woo_breadcrumbs_show' ] == 'true' ) { ?>
			<?php woo_breadcrumbs(); ?> 
		<?php } ?>  

            <?php if (have_posts()) : $count = 0; ?>
            <?php while (have_posts()) : the_post(); $count++; ?>
                                                                        
                <div <?php post_class(); ?>>

				    <h1 class="title"><?php the_title(); ?></h1>
                    
                    <div class="entry">
                        
                        <?php if(get_field('showgreybox')) { ?>
                            <div style="width:250px;padding:10px;border:#cccccc 1px solid;float:right;margin:0px;margin-left:20px;margin-bottom:20px;">
                                <h3><?php the_field('greyboxtitle'); ?></h3>
                                <ul>
                                    <?php while(has_sub_field('greyboxlinks')) : ?>
                                    <li><a href="/../<?php the_sub_field('greyboxlinkurl'); ?>" target="_blank"><?php the_sub_field('greyboxlinktext'); ?></a></li>
                                    <?php endwhile; ?>
                                </ul>
                            </div>
                        <?php } ?>
                        
                        <?php if(is_page(29338)) {
                            include '/home/silicons/public_html/wp-content/themes/woostore/page-include-dealer-application.php';
                        } ?>
                        
	                	<?php the_content(); ?>
                        
                                
                        
	               	</div><!-- /.entry -->

					<?php edit_post_link( __( '{ Edit }', 'woothemes' ), '<span class="small">', '</span>' ); ?>

                </div><!-- /.post -->
                                                    
			<?php endwhile; else: ?>
				<div <?php post_class(); ?>>
                	<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ) ?></p>
                </div><!-- /.post -->
            <?php endif; ?> 
                
                <?php if(is_page(28899)) { ?>
                                    <?php include 'page-include-woo-pricelist.php'; ?>
                                <?php } ?>
        
		</div><!-- /#main -->
		
    </div><!-- /#content -->
		
<?php get_footer(); ?>